package com.aispeech.asr.clib.ssc;

import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

public class SscOutput {
    @Getter
    private int errorCode;
    @Getter
    private int elpsedMSecs;
    @Getter
    private List<SscOutputElement> elements;

    public SscOutput(int errorCode, int procTime) {
        this.errorCode = errorCode;
        this.elpsedMSecs = procTime;
        elements = new ArrayList<>();
    }

    public void addElement(int start, int end, String speaker) {
        elements.add(new SscOutputElement(start, end, speaker));
    }
}
